//1.公共样式
require("../../assets/css/index.less");
require('../../assets/css/basic.less');

//2.当前页面样式
require('../home/home.less');
//3.公共JS
let dom = require('../../utils/dom.js')
let Swiper=require('../../lib/swiper/swiper-bundle.js')
require('../../lib/swiper/swiper-bundle.css')
//当前页面的js
dom.ready(function () {
    //自己书写的js
     // 横幅轮播图
     new Swiper('.swiper', {
        //direction: 'vertical', // 垂直切换选项
        direction: 'horizontal',//水平切换选项
        loop: true, // 循环模式选项
        autoplay: true,//自动切换
        // 如果需要分页器
        pagination: {
            el: '.swiper-pagination',
        },

    })
    //返回主页
    document.querySelector('.home').addEventListener('click',function(){
       location.href='home.html'
    //    console.log('111');
    })
     //返回运动页
    document.querySelector('.sport').addEventListener('click',function(){
        location.href='sport.html'
        // console.log('222');
    })
     //返回圈子
    document.querySelector('.circle').addEventListener('click',function(){
        location.href='circle.html'
        // console.log('333');
    })
     //返回我的（个人中心）
    document.querySelector('.me').addEventListener('click',function(){
        location.href='me.html'
        // console.log('444');
    })
})